<?php
require_once("conn.php");



$sql_lk="select * from $tb_lk where `isshow`='1' limit 14 ";
$cn_lk=mysql_query($sql_lk);

?>
<link href="../images/bj.css" rel="stylesheet" type="text/css">

	
	
<table width="100%" border="0" >
<tr>
  <?php 
  $i=1;
  while($row_lk=mysql_fetch_array($cn_lk)){  
  
  ?>
  
    <td class="dttext" >
		<?php
		if($row_lk[leid]==1 and $row_lk[pic]!="" ){ 
			echo "<a href='".$row_lk[url]."' target='_blank' title='链接名称：".$row_lk[name]." &#13;&#10;简要描述：".$row_lk[description]."&#13;&#10;最后修改：".$row_lk[tdate]."'>";
			  echo "<img src='".$row_lk[pic]."' width=\"88\" height=\"31\" border=\"0\"></a>";
		}else{
			echo "<a href='".$row_lk[url]."' target='_blank' title='链接名称：".$row_lk[name]." &#13;&#10;简要描述：".$row_lk[description]."&#13;&#10;最后修改：".$row_lk[tdate]."'>";
			  echo "".substr_cut($row_lk[name],12)."</a>";
		}
		
		
		?>			</td>
    
	<?php 
	 if($i%7==0) echo "</tr><tr>";
	
	?>
	
  
  
  <?php 
  $i++;
  }?></tr>
</table>	


	
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
